package com.guyan.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * ClassName： CartForm
 * Date： 2021/6/14 22:47
 *
 * @author 孤焰
 * @version 1.0
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CartForm {
    @NotNull(message = "用户未登录")
    private Integer userId;
    @NotNull(message = "未选中任何商品")
    private Integer productId;
    @NotNull(message = "数量不能为空")
    private Integer quantity;
}
